package wpspider.client.model;

import wpspider.client.dao.PageDAO;
import wpspider.client.dao.http.HTTPPageDAO;

/**
 * PageRetriever class.
 */
public class PageRetriever {

    private PageDAO _dao;

    /**
     * Constructor.
     * @throws Exception
     */
    public PageRetriever() throws Exception {
        _dao = new HTTPPageDAO();
    }

    /**
     * Retrieves Page.
     * @param name Page name.
     * @return Page.
     */
    public Page retrievePage(String name) throws Exception {
        return _dao.findByName(name);
    }
}
